import request from '@/router/axios'

export function fetchFansExchangeLogList(query) {
  return request({
    url: '/mp/fansexchangelog/page',
    method: 'get',
    params: query
  })
}

export function addFansExchangeLogObj(obj) {
  return request({
    url: '/mp/fansexchangelog',
    method: 'post',
    data: obj
  })
}

export function getFansExchangeLogObj(id) {
  return request({
    url: '/mp/fansexchangelog/' + id,
    method: 'get'
  })
}

export function delFansExchangeLogObj(id) {
  return request({
    url: '/mp/fansexchangelog/' + id,
    method: 'delete'
  })
}

export function putFansExchangeLogObj(obj) {
  return request({
    url: '/mp/fansexchangelog',
    method: 'put',
    data: obj
  })
}


// 粉丝查询
export function getFansList(obj){
  return request({
    url: '/mp/wxaccountfans/page',
    method: 'get',
    data: obj
  })
}

// 积分兑换商品审核
export function exchangeExamine(id){
  return request({
    url: '/mp/fansexchangelog/editAudit/' + id,
    method: 'get'
  })
}
